package com.endava.spring.beans;

/**
 * Model of Person.
 * 
 * @author acojocar
 * @since 30.07.2013
 * @version 1.0
 * 
 */
public class Person {

	private Integer personID;
	private String firstName;
	private String surname;
	private String address;

	/**
	 * Implicit constructor.
	 */
	public Person() {
		super();
	}

	/**
	 * @param person_id
	 * @param firstName
	 * @param surname
	 * @param address
	 */
	public Person(Integer person_id, String firstName, String surname,
			String address) {
		super();
		this.personID = person_id;
		this.firstName = firstName;
		this.surname = surname;
		this.address = address;
	}

	/**
	 * @return the person_id
	 */
	public Integer getPersonID() {
		return personID;
	}

	/**
	 * @param person_id
	 *            the person_id to set
	 */
	public void setPersonID(Integer personID) {
		this.personID = personID;
	}

	/**
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}

	/**
	 * @param firstName
	 *            the firstName to set
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	/**
	 * @return the surname
	 */
	public String getSurname() {
		return surname;
	}

	/**
	 * @param surname
	 *            the surname to set
	 */
	public void setSurname(String surname) {
		this.surname = surname;
	}

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address
	 *            the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Person : ID = " + personID + " | Name = " + firstName
				+ " | Surname=" + surname + " | Address = " + address;
	}

}
